package com.itany.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/websocket")
public class WebController {

    @RequestMapping("/login")
    public String login(HttpSession session,String username){
        session.setAttribute("SESSION_USERNAME",username);
        return "talk";
    }
}
